"use strict";
const log = require("@akimixu-cli-dev/log");

const Command = require("@akimixu-cli-dev/command");
class InitCommand extends Command {
  init() {
    this.projectName = this._argv[0] || "";
    this.force = !!this._cmd.force;
    log.verbose("init----------", this.projectName, this.force);
  }
  exec() {
    // 业务逻辑
    console.log("业务逻辑");
  }
}
function init(argv) {
  // console.log("init", projectName, cmdObj.force, process.env.CLI_TARGET_PATH);
  return new InitCommand(argv);
}
module.exports = init;
module.exports.InitCommand = InitCommand;
